home *** CD-ROM | disk | FTP | other *** search
- Path: hubcap.clemson.edu!usenet
- From: rmcguir@hubcap.clemson.edu (Bryan McGuire)
- Newsgroups: comp.os.ms-windows.programmer.tools.misc,comp.os.ms-windows.programmer.win32,comp.os.ms-windows.programmer.misc,comp.lang.c++
- Subject: Re: [Q] Why doesn't this compile?
- Date: Thu, 18 Apr 1996 14:46:25 GMT
- Organization: Clemson University
- Message-ID: <4l5kma$d2b@hubcap.clemson.edu>
- References: <317523C0.5042@eps.agfa.be> <4l3e5l$e1t@druid.borland.com> <woernerDq1299.Fup@netcom.com>
- NNTP-Posting-Host: hubcap.clemson.edu
- X-Newsreader: Forte Free Agent 1.0.82
-
- woerner@netcom.com (Rob Woerner) wrote:
-
- >I agree. However, you can work around it by declaring L outside of A, and
- >changing the name of B::L to (say) B::W. The way it is has a hidden 'L', inherited from A, but masked by B::L.
- >I think it is confused by the 2 consecutive '::' operators.
-
- 1. I disagree, B::L is not the same scope as A::L. Only static member
- functions can be called out of scope.
-
- 2. B::L::f() would use A::L::f() anyway because of how B was inherited
- from A.
-
- 3. Has anyone noticed that B's constructor is private?
-
-
-
-